package  {
	import flash.display.MovieClip;
	
	public class CanvasOuter extends MovieClip{
		
		private var upButtons:Array=new Array();
		private var downButtons:Array=new Array();
		//private var taskQueue:Array=new Array();
		
		public function CanvasOuter(found:Found,pContainer:MovieClip,x:int,y:int) {
			reSet(x,y);
			
			for(var i:int=0;i<20;++i)
			{
				upButtons[i]=new OuterButton(found,pContainer,x,y-20*i,i+1,"up");
				downButtons[i]=new OuterButton(found,pContainer,x+20,y-20*i,i+1,"down");
				upButtons[i].buttonMode=true;
				downButtons[i].buttonMode=true;
			}
			
		}
		
		public function reSet(x:int,y:int):void
		{
			this.x=x;
			this.y=y;
		}
		
		public function getOuterUpButtons():Array
		{
			return upButtons; 
		}
		
		public function getOuterDownButtons():Array
		{
			return downButtons;
		}
	
		
	}
	
}